package chapter14.factory;

/**
 * @author : DuJiabao
 * @Date : 2021/2/25 17:26
 * @Project : thinking_in_java
 * @File : null.java
 * @Desc :
 */
public class Bean {
  public static class BeanFactory implements Factory<Bean> {
    @Override
    public Bean create() {
      return new Bean();
    }
  }

  public static void main(String[] args) {
    BeanFactory beanFactory = new BeanFactory();
    Bean bean = beanFactory.create();
  }
}
